﻿@model HRMS_Model.User
@{
    ViewBag.Title = "Index";
}
<script src="@Url.Content("~/Scripts/jquery.validate-1.7.0.min.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/jquery.validate.unobtrusive.min.js")" type="text/javascript"></script>
<link href="@Url.Content("~/Content/Common/Common.css")" rel="stylesheet" type="text/css" />
<div id="LoginForm">
    @using (Html.BeginForm())
    {
        @Html.ValidationSummary(true)
        <fieldset class="fieldset">
            <legend>Sign In</legend>
            <div align="center">
                <div>
                    <div style="width: 50%; float: left; text-align: right">
                        @Html.LabelFor(model => model.UserName) :</div>
                    <div style="width: 48%; float: left; text-align: left; margin-left: 5px; margin-bottom: 5px">
                        @Html.EditorFor(model => model.UserName)</div>
                </div>
                <div>
                    <div style="width: 50%; float: left; text-align: right">
                        @Html.LabelFor(model => model.Password) :</div>
                    <div style="width: 48%; float: left; text-align: left; margin-left: 5px">
                        @Html.EditorFor(model => model.Password)</div>
                </div>
            </div>
            <div align="center">
                <input type="submit" value="SignIn" style="margin-top: 10px" />
            </div>
        </fieldset>
    }
</div>
@section JavaScript{
    <script type="text/javascript">
        $(function () {
            $('#LoginForm').dialog({
                modal: true,
                resizable: false,
                width: '500px',
                height: 'auto',
                close: function (ev, ui) {
                    window.location.href = "Home/Index";
                }
            });
        });
    </script>
}
